import request from '@/utils/request'
export default{
    // 保存信息
    save(form){
        return request({
            url: '/other/unit/save',
            method: 'post',
            data: form
        })
    },
    // 获取信息
    openInfo(id){
        return request({
            url: '/other/unit/getInfo/'+id,
            method: 'post'
        })
    },
    // 修改信息
    updateInfo(form){
        return request({
            url: '/other/unit/update',
            method: 'post',
            data: form
        })
    },
    // 删除信息
    dels(id){
        return request({
            url: '/other/unit/delete/'+id,
            method: 'post',
        })
    },
    // 施工分页查询
    sgpage(page,limit){
        return request({
            url: '/other/unit/page/'+page+'/'+limit+'/1',
            method: 'post',
        })
    },
    // 监理分页查询
    jlpage(page,limit){
        return request({
            url: '/other/unit/page/'+page+'/'+limit+'/2',
            method: 'post',
        })
    },
    // 单位分配人员
    mission(form){
        
        return request({
            url: '/other/unit/unitSaveUser',
            method: 'post',
            data:form
        })
    },
    // 根据单位id 获取已经分配的人员表
    getpeople(id){
        return request({
            url: '/other/unit/getUserByUnitId/'+id,
            method: 'post',
        })
    },
}